/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SPARQL;

import SPARQL.PropertyPath;
import SPARQL.URI;
import java.util.Objects;

/**
 *
 * @author riccardo
 */
public class NotURI extends PropertyPath{
    
    private URI uri;

    public NotURI(URI uri) {
        this.uri = uri;
    }

    @Override
    public String toString() {
        return "!" + uri;
    }

    @Override
    public Object clone() {
        return new NotURI((URI)uri.clone());
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 89 * hash + Objects.hashCode(this.uri);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final NotURI other = (NotURI) obj;
        if (!Objects.equals(this.uri, other.uri)) {
            return false;
        }
        return true;
    }
    
}
